package com.woniuxy.springboot.mybatis.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;
@Data
public class Emp {
    private short empno;
    private String ename;
    private String job;
    private short mgr;
    @JSONField(format = "yyyy-MM-dd")
    private Date hiredate;
    private float sal;
    private float comm;
    private Timestamp hiredatetime;
    private Dept dept;
}
